'use strict'
let mongoose = require('mongoose');

mongoose.connect("mongodb://127.0.0.1/fate", function(err) {
	if (err) {
		logger.error('connect to %s error:', "mongodb://127.0.0.1/fate", err.message);
		process.exit(1);
	}
});


require('./playerModel')
require('./tradeModel')
require('./mailModel')
require('./idsModel')
require('./arenaModel')

exports.Ids = mongoose.model('Ids');
exports.Player = mongoose.model('Player');
exports.Trade = mongoose.model('Trade');
exports.Mail = mongoose.model('Mail')
exports.Arena = mongoose.model('Arena');
